package com.campus.counseling.service;

import com.campus.counseling.entity.AIChatMessage;
import com.campus.counseling.entity.AIChatSession;

import java.util.List;

public interface AIChatService {
    AIChatSession createSession(Long userId, Long testResultId);
    List<AIChatSession> getSessionList(Long userId);
    List<AIChatMessage> getSessionMessages(Long sessionId);
    AIChatMessage sendMessage(Long sessionId, String content);
    void deleteSession(Long sessionId);

    /**
     * 更新会话标题
     * @param sessionId 会话ID
     * @param title 新标题
     */
    void updateSessionTitle(Long sessionId, String title);

    /**
     * 查找用户与特定测试结果相关的活跃会话
     */
    AIChatSession findActiveSessionByTestResult(Long userId, Long testResultId);
}